package model

type CurrencyConfig struct {
	Id            int    `json:"id" gorm:"primaryKey;autoIncrement;comment:主键编码"`
	CurrencyId    string `json:"currencyId" gorm:"type:int;comment:币种ID"`
	AccountType   string `json:"accountType" gorm:"type:tinyint;comment:账户类型:1 标准账户2 STP账户3 ECN账户4 VIP账户"`
	PerSpread     string `json:"perSpread" gorm:"type:decimal(5,0);comment:固定点差"`
	Slippage      string `json:"slippage" gorm:"type:decimal(5,0);comment:滑点"`
	SwapLong      string `json:"swapLong" gorm:"type:decimal(5,0);comment:专业版多单隔夜利息"`
	SwapShort     string `json:"swapShort" gorm:"type:decimal(5,0);comment:专业版空单隔夜利息"`
	Commission    string `json:"commission" gorm:"type:decimal(5,0);comment:专业版佣金"`
	SwapNew       string `json:"swapNew" gorm:"type:decimal(8,5);comment:新手版隔夜利息"`
	CommissionNew string `json:"commissionNew" gorm:"type:decimal(8,5);comment:新手版佣金"`
	AskAdd        string `json:"askAdd" gorm:"type:decimal(5,0);comment:买价加点"`
	BidAdd        string `json:"bidAdd" gorm:"type:decimal(5,0);comment:卖价加点"`
	Leverage      string `json:"leverage" gorm:"type:varchar(30);comment:杠杆"`
	ProLeverage   string `json:"proLeverage" gorm:"type:varchar(30);comment:专业模式杠杆"`
	StopLevel     string `json:"stopLevel" gorm:"type:tinyint(1);comment:最小止损点数"`
}

func (CurrencyConfig) TableName() string {
	return "currency_config"
}
